Skip to content

Add new floating point literal constructor using IEEE754 bitpattern#364

Merged
kfriedberger merged 7 commits intososy-lab:masterfrom
leventeBajczi:ieee-literal
Mar 24, 2024
Merged

Add new floating point literal constructor using IEEE754 bitpattern#364
kfriedberger merged 7 commits intososy-lab:masterfrom
leventeBajczi:ieee-literal

Conversation

@leventeBajczi
Copy link
Contributor

As discussed in #360, currently, floating point literals cannot be directly created if the user has access to the bit pattern of the value. Therefore, this PR adds support for this using the new makeNumber(BigInteger exponent, BigInteger mantissa, boolean signBit, FloatingPointType type) method.

I added a test to verify that no trivial mistakes were made. Let me know if I should add more.

@kfriedberger kfriedberger merged commit e7a161a into sosy-lab:master Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments